package com.example.springbootdemo.task;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  demo任务
 * </p>
 *
 * @author yurenwei
 * @since 2023/9/22
 */
@Slf4j
@Component
public class DemoTask {

    @XxlJob("demoJobHandler")
    public void demoJobHandler(){
        log.info("----------xxl-job test---------------");
    }

}
